build: Add common settings for tests
authorEmmanuele Bassi <ebassi@gnome.org>
Sun, 30 Apr 2017 21:13:47 +0000 (22:13 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 3 May 2017 14:10:58 +0000 (15:10 +0100)
We are going to reuse them in the various parts of the test suite.

testsuite/meson.build

index fef8506bbdfa6949920947323081f3a8ca6d4fb1..481fa2f9aa5d5ae092bc43bfea7d686781982f54 100644 (file)
@@ -1,3 +1,15 @@
+installed_test_bindir = join_paths(get_option('libexecdir'), 'installed-tests', 'gtk-4.0')
+installed_test_datadir = join_paths(get_option('datadir'), 'installed-tests', 'gtk-4.0')
+
+installed_test_env = [
+  'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
+  'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
+  'GIO_USE_VOLUME_MONITOR=unix',
+  'GSETTINGS_BACKEND=memory',
+  'GTK_CSD=1',
+  'G_ENABLE_DIAGNOSTIC=0',
+]
+
 subdir('gtk')
 subdir('gdk')
 subdir('css')